package com.example.backend.mapper;

import com.example.backend.entity.Disease;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface DiseaseMapper {
    //显示所有信息
    @Select("select diseaseId,diseaseName,introduction from db")
    List<Disease> getAllDiseases();
}
